<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
 </head>
 <body>
  <script>
	 var a = parseInt(prompt('请输入第一个整数',''));
	 var b = parseInt(prompt('请输入第二个整数',''));
	 if ((a>=0||a<0)&&(b>=0||b<0))
	 {
		 if ((0 == a%2||-0 == a%2)&&(0 == b%2||-0 == b%2) || (1 == a%2||-1 == a%2)&&(1 == b%2||-1 == b%2))
		 {
			 alert('你好，这两个数的奇偶性相同');
		 }else{
			 alert('你好，这两个数的奇偶性不同');
			  };
	 }else{
		 alert('你好输入错误，请重新输入');
	 }
 </script>
 </body>
</html>
